{include file="inc/header.html"} 
<?php
$this->_var['storeojs'][] = $this->_var['TMPL_REAL']."/js/store.js";
$this->_var['storeojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['storeojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['storeojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['cpstoreojs'][] = $this->_var['TMPL_REAL']."/js/store.js";
$this->_var['cpstoreojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['cpstoreojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['cpstoreojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['storeocss'][] = $this->_var['TMPL_REAL']."/css/store.css";
$this->_var['storeocss'][] = $this->_var['TMPL_REAL']."/css/datepicker.css";
?>

<script type="text/javascript" src="{function name="parse_script" v="$storeojs" c="$cpstoreojs"}"></script>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$storeocss"}" />
<script type="text/javascript">
	var is_order_show = true;
	var store_id="{$store_info.id}";
	var seatStatus = "-1";
	var minExpense = "-1";
	var seatSwitch = "0";
	var deal_type = {$store_info.deal_type};
</script>
<div class="blank"></div>
<div class="res_proc_bg">
	<div class="res_proc_bd">
    	<div class="res_proc_on" style="width:66.7%;">
        	<div class="res_proc_r"></div>
        </div>
    </div>
</div>
<div class="f14 c4c">
	<span class="abs">进度：[第2/3步]</span>
    <ul class="fix tr">
    	<li class="float_three">1. {if $store_info['deal_type'] eq 1}KTV{else}餐厅{/if}首页</li>
        <li class="float_three cg b">2. 填写订单</li>
        <li class="float_three">3. 确认订单</li>
    </ul>
</div>
<div class="blank"></div>
<div class="wrap clearfix wb">
	<div class="store-order">
		<h1><a href="{$store_info.url}">{$store_info.name}</a></h1>
		<div class="sorder-tip">
			当您在按下「我同意并提交」按钮时，则表示您已阅读并同意<a href="{url x="store" r="order#user_agreement" target="_blank"}">{function name="app_conf" v="SHOP_TITLE"}用户服务协议</a>
		</div>
		<div class="blank"></div>
		<form action="{url x="store" r="order#submit"}" method="post" name="STORE-ORDER-FORM" id="STORE-ORDER-FORM">
		<div class="btd res_ord_fill_box">
	            <span class="char_corr abs cg">◆</span>
	            <span class="char_corr abs wh ml-3">◆</span>
	            <h5 class="pl10 cg mt-1">预订信息</h5>
				<div class="filed clearfix">
					<div class="f_left"><span class="red">*</span> {if $store_info['deal_type'] eq 1}K歌{else}就餐{/if}时间</div>
					<div class="f_right">
						<input type="text" class="f-input" readonly="readonly" size="21" id="orderDate" name="orderDate" placeholder="----年--月--日" value="{if $_REQUEST['orderDate']}{$smarty.request.orderDate}{else}{$default_date}{/if}" />
						<input type="text" class="f-input" readonly="readonly" size="5"  id="orderHour" name="orderHour" placeholder="--时" value="{if $_REQUEST['orderHour']}{$smarty.request.orderHour}{else}{$default_hour}{/if}" />
						<input type="text" class="f-input" readonly="readonly" size="5" id="orderMini" name="orderMini" placeholder="--分" value="{if $_REQUEST['orderMini']}{$smarty.request.orderMini}{else}{$default_mini}{/if}" />
					</div>
					<div class="blank5"></div>
					<div class="f_left"><span class="red">*</span> 人数</div>
					<div class="f_right">
						<input type="text" class="f-input" size="5" id="orderNums" name="orderNums" placeholder="--人">
					</div>
					<div class="blank5"></div>
					<div class="f_left"><span class="red">*</span> {if $store_info['deal_type'] eq 1}包厢{else}餐位{/if}情况</div>
					<div class="f_right">
						<div class="clearfix" id="seatStatusAjaxBox"></div>
						<div class="blank5"></div>
						<div style="color:red;font-size:12px" id="seatStatusAjaxTip">因{if $store_info['deal_type'] eq 1}包厢{else}餐位{/if}变化较快，一切以最终预订结果为准。</div>
					</div>
				</div>
         </div>
		 <div class="btd res_ord_fill_box">
	            <span class="char_corr abs cg">◆</span>
	            <span class="char_corr abs wh ml-3">◆</span>
				<h5 class="pl10 cg mt-1">联系人信息</h5>
				<div class="filed clearfix">
					<div class="f_left"><span class="red">*</span> 手机号</div>
					<div class="f_right">
						<input type="text" class="f-input" size="11" id="orderMyTel" name="orderMyTel">
					</div>
				</div>
				<div class="blank5"></div>
				<div class="filed clearfix">
					<div class="f_left"><span class="red">*</span> 姓名</div>
					<div class="f_right">
						<input type="text" class="f-input" size="8" id="orderMyName" name="orderMyName">
						<span class="g9 ml10">建议您留下真实姓名，便于我们更好地为您服务</span>
					</div>
				</div>
				<div class="blank5"></div>
				<div class="filed clearfix">
					<div class="f_left"><span class="red">*</span> 性别</div>
					<div class="f_right">
						<label><input type="radio" class="f-radio orderSex" name="orderSex" value="1" />先生</label>
						<label><input type="radio" class="f-radio orderSex" name="orderSex" value="0" />女士</label>
					</div>
				</div>
				<div class="blank5"></div>
				<div class="filed clearfix">
					<div class="f_left">&nbsp;</div>
					<div class="f_right">
						<input type="checkbox" id="orderForOther" class="f-check" rel="orderOthers">
						<span class="g9">(为他人{if $store_info['deal_type'] eq 1}预订{else}订餐{/if}，积分都赚进自己口袋哦)</span>
					</div>
				</div>
				<div class="clearfix hide" id="orderOtherBox">
					<div class="blank5"></div>
					<div class="blank5"></div>
					<div class="filed clearfix">
						<div class="f_left"><span class="red">*</span> 手机号</div>
						<div class="f_right">
							<input type="text" class="f-input" size="11" id="orderOtherTel" name="orderOtherTel">
						</div>
					</div>
					<div class="blank5"></div>
					<div class="filed clearfix">
						<div class="f_left"><span class="red">*</span> 姓名</div>
						<div class="f_right">
							<input type="text" class="f-input" size="8" id="orderOtherName" name="orderOtherName">
							<span class="g9 ml10">建议您留下真实姓名，便于我们更好地为您服务</span>
						</div>
					</div>
					<div class="blank5"></div>
					<div class="filed clearfix">
						<div class="f_left"><span class="red">*</span> 性别</div>
						<div class="f_right">
							<label><input type="radio" class="f-radio orderOtherSex" name="orderOtherSex" value="1" />先生</label>
							<label><input type="radio" class="f-radio orderOtherSex" name="orderOtherSex" value="0" />女士</label>
							<label><input type="radio" class="f-radio orderOtherSex" name="orderOtherSex" value="2" />公司</label>
						</div>
					</div>
				</div>
		 </div>
		  <div class="btd res_ord_fill_box">
	            <span class="char_corr abs cg">◆</span>
	            <span class="char_corr abs wh ml-3">◆</span>
				<h5 class="pl10 cg mt-1">给商户留言（您还有什么要求，请写在下面）</h5>
				<div class="filed clearfix">
					<div class="blank"></div>
					<div class="clearfix res-msg-box">
						{if $store_info.no_smoking eq 1}
						<div class="blank"></div>
						<label><input type="radio" class="f-radio" name="extraServe" value="1" />吸烟区</label>
						<label><input type="radio" class="f-radio" name="extraServe" value="2" />无烟区</label>
						{/if}
						<div class="blank1"></div>
						<span class="char_cort ml10">◆</span>
						<div class="res_ord_fill_msg bgeb">
	                    	<div class="bdc bgwh">
	                        	<div class="bteb p5 z">
	                        		{if $store_info.deal_type eq 1}
									<textarea id="orderReqArea" name="orderReqArea" class="res_ord_fill_area g9" placeholder="{$LANG.store_order_ktv_tip}">{$LANG.store_order_ktv_tip}</textarea>
									{else}
	                        		<textarea id="orderReqArea" name="orderReqArea" class="res_ord_fill_area g9" placeholder="{$LANG.store_order_tip}">{$LANG.store_order_tip}</textarea>
									{/if}
	                            </div>
	                        </div>
	                    </div>
						<div class="blank"></div>
						<div class="blank"></div>
						<div class="clearfix">
							<div class="grebtn">
								<i class="green_line"></i>
								<strong class="grebtn_in">
									<a href="#" id="bookStepSubmit" class="grebtn_bg">我同意并提交</a>
								</strong>
								<i class="green_line"></i>
							</div>
						</div>
					</div>
				</div>
		 </div>
		 <input type="hidden" name="sid" id="sid" value="{$store_info.id}" />
		 </form>
	</div>
</div>
<div class="fw-date-box abs" id="FW-DATE-BOX"></div>
{include file="inc/footer.html"}